package ar.com.wholeconsulting.pacc.gui.utils.treetable;

import java.util.ArrayList;
import java.util.List;

public class TreeTableNode {
	private String name;
	private String description;
	private Object obj;
	
	private final List<TreeTableNode> children = new ArrayList<TreeTableNode>();

	public TreeTableNode() {
	}

	public TreeTableNode(String name, String description,Object obj) {
		this.name = name;
		this.description = description;
		this.obj=obj;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public List<TreeTableNode> getChildren() {
		return this.children;
	}
	
	@Override
	public String toString() {
		return this.name + ", " + this.description;
	}

	public Object getObj() {
		return this.obj;
	}

	public void setObj(Object obj) {
		this.obj = obj;
	}
       
	
}
